package idGen;

import java.util.concurrent.atomic.AtomicInteger;

public class AtomicIdGenerator extends HiLoIdGenerator {

	protected AtomicInteger low;
	
	public AtomicIdGenerator(int hi,int lowoffset){
		super(hi);
		low = new AtomicInteger(lowoffset);
	}
	
	@Override
	public int getLow() {
		return low.incrementAndGet();
	}

}
